﻿// 2. Write a method GetMax() with two parameters that returns the bigger of two integers.
//Write a program that reads 3 integers from the console and prints the biggest of them using the method GetMax().


using System;
using System.Collections.Generic;

class BiggerNumber
{
    static void Main()
    {
        int firstNum = int.Parse(Console.ReadLine());
        int secondNum = int.Parse(Console.ReadLine());
        int thirdNum = int.Parse(Console.ReadLine());
        int biggerNumber = GetMax(firstNum, secondNum);
        Console.WriteLine("Biggest number is: {0}", GetMax(thirdNum, biggerNumber));
    }
    static int GetMax(int first, int second)
    {
        if (first >= second)
        {
            return first;
        }
        else
        {
            return second;
        }
    }
}
